package cn.sx.entity;

/*
 *@program:sx_emall_ssm
 *@author: sx
 *@desc: 推荐信息表
 *@Time: 2020/9/24  10:13
 */

import org.springframework.stereotype.Component;

@Component
public class Tops {

    /*首页推荐类型   今日推荐*/
    public static final byte TYPE_TODAY=1;

    private int id;//编号
    private byte type;//推荐类型(1今日推荐)
    private int goodId;//商品编号

    public Tops() {
    }

    public Tops(int id, byte type, int goodId) {
        this.id = id;
        this.type = type;
        this.goodId = goodId;
    }

    public static byte getTypeToday() {
        return TYPE_TODAY;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public byte getType() {
        return type;
    }

    public void setType(byte type) {
        this.type = type;
    }

    public int getGoodId() {
        return goodId;
    }

    public void setGoodId(int goodId) {
        this.goodId = goodId;
    }

    @Override
    public String toString() {
        return "Tops{" +
                "id=" + id +
                ", type=" + type +
                ", goodId=" + goodId +
                '}';
    }
}
